﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using System;
public class TouchRotate : MonoBehaviour,IDragHandler
{
    public Action<PointerEventData> DragCallBack;
    //public Transform Target;
    public void OnDrag(PointerEventData eventData)
    {
        //Target.Rotate(new Vector3(0,-eventData.delta.x, 0));
        if (DragCallBack != null) { DragCallBack(eventData); }
    }

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
